package hu.szte.ovrt.mzst.operations;

import hu.szte.ovrt.mzst.exceptions.BadOperandException;
import hu.szte.ovrt.mzst.interfaces.Expression;

public abstract class OneOperandOperation implements Expression {
	protected String firstOperand;

	public OneOperandOperation(String firstOperand) {
		super();
		this.firstOperand = firstOperand;
	}
	
	abstract public void execute() throws BadOperandException;
	
	@Override
	public void interpret() throws BadOperandException {
		this.execute();
	}
}
